﻿using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using Vecen.BangChuang.MultiTenancy.Dto;

namespace Vecen.BangChuang.MultiTenancy
{

    /// <summary>
    /// 租户信息操作
    /// </summary>
    public interface ITenantAppService : IApplicationService
    {
        /// <summary>
        /// 获得所有租户
        /// </summary>
        /// <returns></returns>
        ListResultDto<TenantListDto> GetTenants();

        /// <summary>
        /// 创建租户
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task CreateTenant(CreateTenantInput input);
    }
}
